<h1>
        <span class="action-span1">
		<a href="javascript:void(0);">用户管理</a>---<a href="./index.php?c=user&a=userList">用户列表</a>---<a href="javascript:void(0);">好友列表</a>
	</span>
	<div style="clear:both"></div>
</h1>


<div class="form-div">
    <form action="./index.php?c=user&a=userlist" name="searchForm" method="get">
  	<input type="hidden" name="c" value="user">
  	<input type="hidden" name="a" value="userFriend">
        <input type="hidden" name="uid" value="<?=$uid?>">
    <img src="./public/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />    
     用户ID <input type="text" name="userID" size="15" value="<?=$userID?>" />
  <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>



<!-- 用户列表 -->

  <!-- start user list -->
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>序号</th>
    <th>好友名称</th>
    <th>状态</th>
    <th>申请时间</th>
    <th>对方回复</th>
  </tr>
  <?php if($friendList):foreach ($friendList as $v ):?>
  <tr class="" style="text-align:center">
    <td><?=$v['id']?></td>
    <td><a href="./index.php?c=user&a=userDetail&uid=<?=$v['fID']?>"><?=$v['fName']?></a></td>
    <td><?php  if( '1' == $v['state']): echo "发送请求"; elseif( '2' == $v['state']): echo "互为好友"; elseif( '3' == $v['state']): echo "黑名单"; endif;?></td>
    <td><?=date("Y-m-d H:i:s" , $v['ctime']); ?></td>
    <td><?php if($v['rtime']): echo date("Y-m-d H:i:s" , $v['rtime']); endif; ?></td>
  </tr>
  <?php endforeach;endif;?>
  </table>
<!-- end goods list -->

<!-- 分页 -->
<?php if($page){?>
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true"><?=$page?></td>
  </tr>
</table>
<?php }?>
</div>